<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2020/5/28
  Time: 12:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <title>Title</title>
    <base href="<%=basePath%>">
    <link rel="stylesheet" href="statics/css/bootstrap.min.css">
    <link rel="stylesheet" href="statics/css/bootstrap-table/bootstrap-table.min.css">
</head>
<body>
<div class="container">
    <table id="tbl_user"></table>
</div>

<script src="statics/js/jquery.min.js"></script>
<script src="statics/js/bootstrap.min.js"></script>
<script src="statics/js/bootstrap-table/bootstrap-table.min.js"></script>
<script src="statics/js/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script>
    $(function () {
        $('#tbl_user').bootstrapTable({
            url:"user/list",
            method:"post",
            // dataType:"json"
            columns:[
                {
                  field:"id",
                  title:"主键",
                  align:"center"
                },
                {
                    field:"usercode",
                    title:"用户编码",
                    align:"center"
                },
                {
                    field:"username",
                    title:"用户名",
                    align:"center"
                },
            ]
        });
    });
</script>
</body>
</html>
